//2:假定作业的命名要求是必须是压缩格式，比如zip或者rar,输入作业的名称，判断是否合适。
public class Str {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        String s1 = "zip";
        String s2 = "rar";
        System.out.println("请输入作业的名称：");
        String work = scan.next();
        int b = 0;
        if ((b = work.indexOf(s1)) > 0 || (b = work.indexOf(s2)) > 0) {
            System.out.println("合适！");
        } else System.out.println("不合适！");
    }
}